/** 商业智能管理路由 */
import Layout from '@/views/layout/businessLayout'


const taskCompleteRouteItem = {
    path: 'taskCompletestatistics', // 业绩目标完成情况
    component: () => import('@/views/businessIntelligence/TaskCompleteStatistics'),
    meta: {
        requiresAuth: true,
        title: '业绩目标完成情况',
        icon: 'taskCompletestatistics',
        index: 1,
        type: 'bi',
        subType: 'achievement'
    }
}
const taskCompleteRouteItem1 = {
    path: 'taskCompletestatistics', // 业绩目标完成情况
    component: () => import('@/views/businessIntelligence/TaskCompleteStatistics'),
    meta: {
        requiresAuth: true,
        title: '业绩目标完成情况',
        icon: 'taskCompletestatistics',
        index: 1,
        type: 'bi',
        subType: 'achievement'
    }
}
const taskCompleteRouteItem2 = {
    path: 'taskCompletestatistics', // 业绩目标完成情况
    component: () => import('@/views/businessIntelligence/TaskCompleteStatistics'),
    meta: {
        requiresAuth: true,
        title: '业绩目标完成情况',
        icon: 'taskCompletestatistics',
        index: 1,
        type: 'bi',
        subType: 'achievement'
    }
}

export const biRouter = {
    path: '/bi',
    component: Layout,
    redirect: '/bi/customerTotal',
    name: 'bi',
    hidden: true,
    meta: {
        requiresAuth: true,
        title: '商业智能',
        index: 0,
        type: 'bi'
    },
    children: [
        taskCompleteRouteItem,
        taskCompleteRouteItem1,
        taskCompleteRouteItem2,
    ]
}

export const biRouterMenu = [
    taskCompleteRouteItem,
    taskCompleteRouteItem1,
    taskCompleteRouteItem2,
]